const db = require("../../middleware/db");
const Sequelize = require("sequelize");
// db日志管理
module.exports = sys_log = db.define("sys_log", {
  table_name: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
  },
  operate: {
    type: Sequelize.STRING(100),
    allowNull: false,
    defaultValue: "",
  },
  content: {
    type: Sequelize.TEXT(),
    allowNull: false,
    defaultValue: "",
  },
});
// sys_log.sync({ force: true });
